import { Item } from "../../shared/face/index";
import { BaseBody } from '../../core/rpg';

/**
 * bagFunc 函数的通用返回类型
 */
export interface BagFuncResult {
    success: boolean;
    message: string;
    data?: any;
}

/**
 * bagFunc 函数的通用参数类型
 */
export interface BagFuncParams {
    useItem: Item;
    useCount: number;
    funcData: any;
    player: BaseBody;
}

/**
 * bagFunc 函数的通用类型
 */
export type BagFunc = (useItem: Item, useCount: number, funcData: any, player: BaseBody) => Promise<BagFuncResult>; 